package com.dinzeer.lostbladereborn.sa;

import com.dinzeer.legendreliclib.lib.util.check.EntityPointer;
import com.dinzeer.legendreliclib.lib.util.dash.DashMessage;
import net.minecraft.world.entity.LivingEntity;

import java.util.Optional;

public class Elbowstrike {
    public static void doSlash(LivingEntity playerIn) {
        LivingEntity target = EntityPointer.raycastForEntityTo(playerIn.level(), playerIn, 32, true);
        if (target == null) {
            Optional<LivingEntity> targetedEntity = EntityPointer.findTargetedEntity(playerIn, 10);
            if (targetedEntity.isEmpty()) return;
            target = targetedEntity.get();
        }
        if (target!=null){
            DashMessage.vmove(target,3,-10)  ;
        }




    }



}

